Integrand size = 25, antiderivative size = 156 \[ \int \left (c (d \sec (e+f x))^p\right )^n (a+a \sec (e+f x)) \, dx=\frac {a \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-\frac {n p}{2},\frac {1}{2} (2-n p),\cos ^2(e+f x)\right ) \left (c (d \sec (e+f x))^p\right )^n \sin (e+f x)}{f n p \sqrt {\sin ^2(e+f x)}}-\frac {a \cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{2} (1-n p),\frac {1}{2} (3-n p),\cos ^2(e+f x)\right ) \left (c (d \sec (e+f x))^p\right )^n \sin (e+f x)}{f (1-n p) \sqrt {\sin ^2(e+f x)}} \]
[Out]
Time = 0.18 (sec) , antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {4033, 3872, 3857, 2722} \[ \int \left (c (d \sec (e+f x))^p\right )^n (a+a \sec (e+f x)) \, dx=\frac {a \sin (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-\frac {n p}{2},\frac {1}{2} (2-n p),\cos ^2(e+f x)\right ) \left (c (d \sec (e+f x))^p\right )^n}{f n p \sqrt {\sin ^2(e+f x)}}-\frac {a \sin (e+f x) \cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{2} (1-n p),\frac {1}{2} (3-n p),\cos ^2(e+f x)\right ) \left (c (d \sec (e+f x))^p\right )^n}{f (1-n p) \sqrt {\sin ^2(e+f x)}} \]
[In]
[Out]
Rule 2722
Rule 3857
Rule 3872
Rule 4033
Rubi steps \begin{align*} \text {integral}& = \left ((d \sec (e+f x))^{-n p} \left (c (d \sec (e+f x))^p\right )^n\right ) \int (d \sec (e+f x))^{n p} (a+a \sec (e+f x)) \, dx \\ & = \left (a (d \sec (e+f x))^{-n p} \left (c (d \sec (e+f x))^p\right )^n\right ) \int (d \sec (e+f x))^{n p} \, dx+\frac {\left (a (d \sec (e+f x))^{-n p} \left (c (d \sec (e+f x))^p\right )^n\right ) \int (d \sec (e+f x))^{1+n p} \, dx}{d} \\ & = \left (a \left (\frac {\cos (e+f x)}{d}\right )^{n p} \left (c (d \sec (e+f x))^p\right )^n\right ) \int \left (\frac {\cos (e+f x)}{d}\right )^{-n p} \, dx+\frac {\left (a \left (\frac {\cos (e+f x)}{d}\right )^{n p} \left (c (d \sec (e+f x))^p\right )^n\right ) \int \left (\frac {\cos (e+f x)}{d}\right )^{-1-n p} \, dx}{d} \\ & = \frac {a \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-\frac {n p}{2},\frac {1}{2} (2-n p),\cos ^2(e+f x)\right ) \left (c (d \sec (e+f x))^p\right )^n \sin (e+f x)}{f n p \sqrt {\sin ^2(e+f x)}}-\frac {a \cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{2} (1-n p),\frac {1}{2} (3-n p),\cos ^2(e+f x)\right ) \left (c (d \sec (e+f x))^p\right )^n \sin (e+f x)}{f (1-n p) \sqrt {\sin ^2(e+f x)}} \\ \end{align*}
Time = 0.14 (sec) , antiderivative size = 124, normalized size of antiderivative = 0.79 \[ \int \left (c (d \sec (e+f x))^p\right )^n (a+a \sec (e+f x)) \, dx=\frac {a \csc (e+f x) \left ((1+n p) \cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {n p}{2},1+\frac {n p}{2},\sec ^2(e+f x)\right )+n p \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{2} (1+n p),\frac {1}{2} (3+n p),\sec ^2(e+f x)\right )\right ) \left (c (d \sec (e+f x))^p\right )^n \sqrt {-\tan ^2(e+f x)}}{f n p (1+n p)} \]
[In]
[Out]
\[\int \left (c \left (d \sec \left (f x +e \right )\right )^{p}\right )^{n} \left (a +a \sec \left (f x +e \right )\right )d x\]
[In]
[Out]
\[ \int \left (c (d \sec (e+f x))^p\right )^n (a+a \sec (e+f x)) \, dx=\int { {\left (a \sec \left (f x + e\right ) + a\right )} \left (\left (d \sec \left (f x + e\right )\right )^{p} c\right )^{n} \,d x } \]
[In]
[Out]
\[ \int \left (c (d \sec (e+f x))^p\right )^n (a+a \sec (e+f x)) \, dx=a \left (\int \left (c \left (d \sec {\left (e + f x \right )}\right )^{p}\right )^{n}\, dx + \int \left (c \left (d \sec {\left (e + f x \right )}\right )^{p}\right )^{n} \sec {\left (e + f x \right )}\, dx\right ) \]
[In]
[Out]
\[ \int \left (c (d \sec (e+f x))^p\right )^n (a+a \sec (e+f x)) \, dx=\int { {\left (a \sec \left (f x + e\right ) + a\right )} \left (\left (d \sec \left (f x + e\right )\right )^{p} c\right )^{n} \,d x } \]
[In]
[Out]
\[ \int \left (c (d \sec (e+f x))^p\right )^n (a+a \sec (e+f x)) \, dx=\int { {\left (a \sec \left (f x + e\right ) + a\right )} \left (\left (d \sec \left (f x + e\right )\right )^{p} c\right )^{n} \,d x } \]
[In]
[Out]
Timed out. \[ \int \left (c (d \sec (e+f x))^p\right )^n (a+a \sec (e+f x)) \, dx=\int {\left (c\,{\left (\frac {d}{\cos \left (e+f\,x\right )}\right )}^p\right )}^n\,\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right ) \,d x \]
[In]
[Out]